-- GENERATED SPELL FOR [Baron Vardus] --


function spell0_2306(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2306', 2341, 1)
end

function spell1_2306(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(11831,pUnit)
pUnit:RegisterEvent('Sorts_2306', 8339, 1)
end

function spell2_2306(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20822,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2306', 7000, 1)
end

function Sorts_2306(pUnit, Event)
local choix_sorts_2306 = math.random(0, 2)
if choix_sorts_2306 == 0 then
pUnit:RegisterEvent('spell0_2306', 1, 1)
end
if choix_sorts_2306 == 1 then
pUnit:RegisterEvent('spell1_2306', 1, 1)
end
if choix_sorts_2306 == 2 then
pUnit:RegisterEvent('spell2_2306', 1, 1)
end
end

function mob2306_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2306', math.random(1500, 3000), 1)
end

function mob2306_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2306_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2306_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2306, 1, 'mob2306_Action')
RegisterUnitEvent(2306, 2, 'mob2306_Leave')
RegisterUnitEvent(2306, 3, 'mob2306_Kill')
RegisterUnitEvent(2306, 4, 'mob2306_Die')
